package com.pearadmin.pro.modules.paper.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pearadmin.pro.modules.paper.dto.ext.PaperQuDetailDTO;
import com.pearadmin.pro.modules.paper.entity.PaperQu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试卷考题Mapper
 * @author ZhouXingYun
 * @date 2022/5/23 17:55
 */
@Mapper
public interface PaperQuMapper extends BaseMapper<PaperQu> {


    /**
     * 统计客观分
     * @param paperId
     * @return
     */
    int sumObjective(@Param("paperId") String paperId);


    /**
     * 找出全部试题列表
     * @param paperId
     * @return
     */
    List<PaperQuDetailDTO> listByPaper(@Param("paperId") String paperId);
}


